package com.weixing.mall.provider.model.vo.report.customer;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.weixing.mall.provider.api.model.enums.OrderTypeEnum;
import com.weixing.mall.provider.support.excel.EnumConverter.OrderTypeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author jzy
 * @date 2020/5/17
 */
@Data
@ApiModel(value="CustomerReportAgentRankingVo", description="客服报表-代理销售排行榜")
public class CustomerReportAgentRankingVo {
    @ApiModelProperty(value = "所属客服Id")
    @ExcelIgnore
    private Long customerId;
    @ApiModelProperty(value = "代理商Id")
    @ExcelIgnore
    private Long agentId;
    @ApiModelProperty(value = "角色类型 1客服  2代理商")
    @ExcelIgnore
    private Integer roleType;


    @ApiModelProperty(value = "经销商/代理")
    @ExcelProperty("经销商/代理")
    private String userName;
    @ApiModelProperty(value = "销售数量--修改")
    @ExcelProperty("销售数量")
    private Integer quantity;
    @ApiModelProperty(value = "销售金额--修改")
    @ExcelProperty("销售金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "实际件数--修改")
    @ExcelProperty("实际件数")
    private Integer actualQuantity;
    @ApiModelProperty(value = "实际销售金额--修改")
    @ExcelProperty("实际销售金额")
    private BigDecimal actualAmount;
    @ApiModelProperty(value = "订单类型 1正价订单；2代理商活动订单；3秒杀活动订单")
    @ExcelProperty(value = "订单类型",converter = OrderTypeConverter.class)
    private OrderTypeEnum orderType;
    @ApiModelProperty(value = "活动名称")
    @ExcelProperty("活动名称")
    private String actName;
    @ApiModelProperty(value = "所属客服")
    @ExcelProperty("所属客服")
    private String customerName;
}
